Skip to content

fix .bridge file loading by encoding brackets using toURI().toString()#260

Open
traybug23 wants to merge 2 commits intobridgedb:mainfrom
traybug23:fix-bridge-file-brackets
Open

fix .bridge file loading by encoding brackets using toURI().toString()#260
traybug23 wants to merge 2 commits intobridgedb:mainfrom
traybug23:fix-bridge-file-brackets

Conversation

@traybug23
Copy link
Copy Markdown

@traybug23 traybug23 commented Mar 23, 2026

BridgeDb loading issues #211

The issue was that when a .bridge file was being downloaded twice, Windows would automatically add (1) to the file name and the plugin was unable to load it.

Solution: .toURI().toString(); encodes the parantheses from special character to %28 and %29. This would also encode (space) in the file name as %20, thus in case a file would have space in its name, it will still be loaded.

( is encoded as %28
) is encoded as %29
(space) is encoded as %20

Now, the BridgeDb files can load successfully.
@egonw @DeniseSl22

Screenshot 2026-03-23 210120

@egonw egonw self-assigned this Mar 24, 2026
@egonw egonw self-requested a review March 24, 2026 08:20
@egonw egonw assigned traybug23 and unassigned egonw Mar 25, 2026
Copy link
Copy Markdown
Author

@traybug23 traybug23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@egonw I added the missing + in the return string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants